window: Don't update type hint when it didn't change
authorBenjamin Otte <otte@redhat.com>
Sun, 19 Jul 2015 02:39:06 +0000 (04:39 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 19 Jul 2015 02:45:25 +0000 (04:45 +0200)
gtk/gtkwindow.c

index 9bb1f90c8977ba55def0b2a6e2a642e6c6dacc12..ab2186dcb56d90d10f22a296b6a939af29930a8d 100644 (file)
@@ -3506,6 +3506,9 @@ gtk_window_set_type_hint (GtkWindow           *window,
 
   priv = window->priv;
 
+  if (priv->type_hint == hint)
+    return;
+
   priv->type_hint = hint;
 
   if (gtk_widget_get_mapped (GTK_WIDGET (window)))